<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    <h1><a href="{:U('add',array('magic_id' => $magic['id']))}" class="addbtn">为{$magic.title}添加参与对象</a></h1>
     <div class="table_"><table class="table table-bordered" width="100%" border="0" cellpadding="0" cellspacing="0">
 <thead>
 <tr>
    <td align="center">ID</td>
    <td align="center">用户名（openid）</td>
    <td align="center">次数</td>
    <td align="center">操作</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" /></td>
    <td>{$vo.aid}-[{$vo.openid}]</td>
    <td align="center">{$vo.number}</td>
    <td align="center"><a href="{:U('delete',array('magic_id'=>$vo['magic_id'],'aid' => $vo['aid']))}" onclick="return confirm('您确定要删除这条记录吗？');">删除</a></td>
  </tr>
</volist>
  <tr>
    <td colspan="4"><a href="javascript:void(0);" onclick="sall();">全选/反选</a> <a href="javascript:void(0);" onclick="rall();">全不选</a> <a href="javascript:void(0);" onclick="delall();">删除选中</a> <a href="javascript:void(0);" onclick="update_sort();">更新排序</a></td>
    </tr><tr>
    <td colspan="4"><div class="pages">{$pages}</div></td>
    </tr>
</table></div>

  </div>
  <div class="clear"></div>
</div>
<script>
function openWin(url,title,width,height){
        var d = dialog({
			title: title,
			content: "<iframe src=\""+url+"\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>",
			cancel: false,
			width:width,
			height:height,
			fixed:true,
			ok: function () {
				
			}
		});
		d.__lock();
		d.show();
}
</script>
<include file="Public:footer" />